-- GENERATED SPELL FOR [Dragonflayer Fleshripper] --


function spell0_24250(pUnit, Event) --@Bloodthirst,n/a--
pUnit:FullCastSpellOnTarget(35948,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24250', 10349, 1)
end

function spell1_24250(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(11977,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24250', 15000, 1)
end

function Sorts_24250(pUnit, Event)
local choix_sorts_24250 = math.random(0, 1)
if choix_sorts_24250 == 0 then
pUnit:RegisterEvent('spell0_24250', 1, 1)
end
if choix_sorts_24250 == 1 then
pUnit:RegisterEvent('spell1_24250', 1, 1)
end
end

function mob24250_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24250', math.random(1500, 3000), 1)
end

function mob24250_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24250_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24250_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24250, 1, 'mob24250_Action')
RegisterUnitEvent(24250, 2, 'mob24250_Leave')
RegisterUnitEvent(24250, 3, 'mob24250_Kill')
RegisterUnitEvent(24250, 4, 'mob24250_Die')
